package com.jiayang.hhotel.ui;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.annotation.Nullable;

import com.jiayang.hhotel.R;

/**
 * Created by Administrator on 2017/5/23 0023.
 * 欢迎页
 */

    public class GuideActivity extends Activity {
        private Handler handle=new Handler(){
            @Override
            public void handleMessage(Message msg) {
                Intent intent = null;
                switch (msg.what){
                    case 0://没有登录记录
//                        intent=new Intent(GuideActivity.this,LoginActivity.class);
                        intent=new Intent(GuideActivity.this,FrontActivity.class);
                        break;
                }
                startActivity(intent);
                overridePendingTransition(R.anim.in_alpha,R.anim.out_alpha);
                finish();
            }
        };

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.layout_guide);
        handle.sendEmptyMessageDelayed(0,2000);
    }
}
